finding the intersection of two lines